@import './base/reset.less';
@import './base/variables.less';
@import './base/common.less';
@import './mixins/vendor-prefixes.less';

@import '../img/iconImg/style.css';

@import './table.less';
.wrapper,
html,
body {
	height: 100%;
	margin: 0;
	background-color: @lightBg;
}

html {
	font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', Arial,
		sans-serif;
}

* {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

:after,
:before {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

.content-wrapper {
	position: absolute;
	top: @headerH;
	left: @sidebarW;
	right: 0;
	bottom: 0;
	margin: @spacing @spacing 0px @spacing;
	display: flex;
	flex-direction: column;
	.backface-visibility(hidden);
	.transition(all 0.3s ease);
	&.to-full {
		left: 0px;
		top: 0px;
	}
}

.router-wrapper {
	position: relative;
	flex: 1;
	width: 100%;
	background-color: #fff;
	border-radius: 4px;
}

.common-body-wrapper {
	position: relative;
	background-color: #fff;
	padding-bottom: 20px;
}

.common-table-tree-wrapper {
	display: flex;
	justify-content: space-between;
}

.common-table-wrapper {
	flex: 1;
}

[v-cloak] {
	display: none;
}

a {
	color: #fff;
	&:hover,
	&:focus,
	&:active {
		color: #fff;
	}
}

.flex-group {
	display: flex;
	width: 100%;
	.span-control {
		word-break: break-all;
	}
	.flex1 {
		-webkit-flex: 1;
		flex: 1;
	}
	.flex2 {
		-webkit-flex: 2;
		flex: 2;
	}
	.flex3 {
		-webkit-flex: 3;
		flex: 3;
	}
	.flex4 {
		-webkit-flex: 4;
		flex: 4;
	}
	.flex5 {
		-webkit-flex: 5;
		flex: 5;
	}
	.flex6 {
		-webkit-flex: 6;
		flex: 6;
	}
	.flex7 {
		-webkit-flex: 7;
		flex: 7;
	}
	.flex8 {
		-webkit-flex: 8;
		flex: 8;
	}
	.flex9 {
		-webkit-flex: 9;
		flex: 9;
	}
	.flex10 {
		-webkit-flex: 10;
		flex: 10;
	}
}

.no-padding {
	padding: 0px;
}

.inblock {
	display: inline-block;
}

.scale-box {
	transform-origin: 90% 0%;
	transition: transform 0.2s ease-in-out;
}

.scale-enter-active,
.scale-leave {
	transform: scale(1);
}

.scale-enter,
.scale-leave-active {
	transform: scale(0);
}

.el-checkbox,
.el-form-item__label {
	color: #fff;
}

.el-date-editor .el-range-separator,
.el-date-editor .el-range__close-icon,
.el-date-editor .el-range__icon,
.form-group .el-input__icon,
.el-form-item__content,
.el-form-item__label {
	line-height: normal;
}

.el-table.el-table--border td .cell,
.el-table.el-table--border th .cell {
	padding-left: 0px !important;
	text-align: center;
}

.label-black-wrapper {
	.el-form-item__label {
		color: @lightBlack;
	}
}

.el-form-item {
	.w50 {
		width: 50px;
	}
	.inblock {
		display: inline-block;
	}
}

.add-one-btngroup {
	width: 100%;
	display: flex;
	justify-content: center;
	margin-top: 40px;
	.dashed_big_btn {
		width: 240px;
		height: 34px;
		line-height: 34px;
		border-style: dashed;
		letter-spacing: 4px;
		font-size: 15px;
	}
}

.thumb-img {
	width: 120px;
	height: 34px;
}

table tr td .a-link {
	color: @blue;
	text-decoration: underline;
	cursor: pointer;
}

.el-textarea.is-disabled .el-textarea__inner,
.el-input.is-disabled .el-input__inner,
.el-radio__input.is-disabled + .el-radio__label {
	color: #333;
}

.el-radio__input.is-disabled.is-checked .el-radio__inner {
	background-color: #20a0ff;
	border-color: #20a0ff;
}

.new-tab-page {
	width: 880px;
	min-height: calc(~'100% - 10px');
	margin: 10px auto 0;
	background-color: #fff;
	border: 1px solid @lightBorderColor;
	border-bottom: 0;
	&.large {
		width: 960px;
	}
	&.middle-box {
		min-height: 660px;
		margin-bottom: 122px;
		border: 1px solid @lightBorderColor;
	}
}

@darkThemeBg: rgba(50, 52, 54, 0.8);
.dark-theme {
	&.el-dropdown-menu {
		background-color: @darkThemeBg;
		color: #fff;
	}
	.el-dropdown-menu__item {
		color: #fff;
		&:focus,
		&:not(.is-disabled):hover {
			background-color: rgba(0, 0, 0, 0.4);
			color: #fff;
		}
	}
	&.el-popper[x-placement^='bottom'] {
		.popper__arrow {
			border-bottom-color: @darkThemeBg;

			&::after {
				border-bottom-color: #5b5d5e;
			}
		}
	}
	&.el-popper[x-placement^='top'] {
		.popper__arrow {
			border-top-color: @darkThemeBg;

			&::after {
				border-top-color: #5b5d5e;
			}
		}
	}
}

// dialog 公共样式

.zb-dialog {
	.ake_btn {
		height: 32px !important;
		line-height: 32px !important;
		padding: 0 15px !important;
		font-size: 14px !important;
	}

	.el-button {
		font-size: 14px !important;
		padding: 8px 16px !important;
	}
	&.full-select {
		.el-select {
			width: 100%;
		}
	}
	.el-dialog.zb-center-dialog {
		margin: 0 !important;
	}
	.el-dialog__header {
		background: #f4f4f4;
		border-radius: 4px 4px 0 0;
		padding-top: 0;
		padding-bottom: 0;
		padding-left: 20px;
		display: flex;
		height: 40px;
		align-items: center;
		justify-content: space-between;
		.el-dialog__title {
			color: @textColor38;
			font-size: 16px;
			font-weight: bold;
		}
		.el-dialog__headerbtn {
			top: 11px;
			.el-icon-close {
				font-weight: bold;
				color: #555;
				font-size: 18px;
			}
		}
	}
	.el-dialog__footer {
		padding-top: 0;
		padding-bottom: 0;
		padding-left: 30px;
		height: 60px;
		display: flex;
		align-items: center;
		justify-content: center;
		background: #fff;
		border-bottom-left-radius: 4px;
		border-bottom-right-radius: 4px;
		border-top: 1px solid #f4f4f4;
		.el-button + .el-button {
			margin-left: 40px;
		}
		.el-button {
			height: 32px !important;
			line-height: 32px !important;
			font-size: 14px !important;
			min-width: 85px;
			letter-spacing: 3px;
			text-indent: 3px;
			padding: 0 !important;
			.el-icon--right {
				margin-left: -5px;
			}
		}
	}

	.el-dialog--center .el-dialog__footer {
		justify-content: center;
	}

	.dialog-footer {
		&.center {
			text-align: center;
		}
	}
	.el-input-number--small .el-input-number__increase,
	.el-input-number--small .el-input-number__decrease {
		height: 28px !important;
	}
}

.common-body-wrapper .flex-box-wrapper {
	height: calc(~'100% - 50px');
}

.el-message-box__title {
	font-size: 14px !important;
}

.has-tip {
	position: relative;
	.more-tip {
		position: absolute;
		top: calc(~'100% + 10px');
		left: 50%;
		transform: translateX(-50%);
		display: inline-block;
		padding: 5px 8px;
		background-color: @black;
		color: #fff;
		border-radius: 4px;
		white-space: nowrap;
		z-index: 100;

		&::before {
			content: '';
			position: absolute;
			top: -12px;
			left: 50%;
			transform: translateX(-50%);
			width: 0;
			height: 0;
			border-style: solid;
			border-color: transparent;
			border-width: 6px 6px;
			border-bottom-color: @black;
		}
	}
}

.mgr-msg-box {
	.el-message-box__header {
		background: #f4f4f4;
	}
	.el-message-box__content {
		padding: 20px;
	}
	&.rule-tips {
		width: 520px;
	}
	.el-message-box__btns {
		text-align: center;
	}
	.el-message-box__btns button {
		&:not(:first-child) {
			margin-left: 20px;
		}
	}
}

.el-date-editor .el-range-input {
	width: 50% !important;
}

.login-menu-dropdown {
	height: 84px;
	.link-box {
		height: 84px;
		display: flex;
		flex-direction: column;
		min-width: 100px;
		cursor: pointer;
		padding-right: 40px;
		span {
			&:first-child {
				width: 100%;
				height: 75px;
				line-height: 75px;
				text-align: center;
				flex: 1;
				font-size: 18px;
				color: #666666;
			}
			&.lower-line {
				width: 48px;
				height: 4px;
				margin-left: 16px !important;
				margin-bottom: 2px;
			}
		}
	}
}

.login-menu-dropdown-menu {
	&.el-popper[x-placement^='bottom'] .popper__arrow {
		display: none;
	}

	.el-dropdown-menu__item {
		padding: 6px 40px;
		font-size: 15px;
		color: #333333;
	}
}
// 高德地图搜索提示框样式
.amap-sug-result {
	z-index: 3000;
}

.el-input__prefix {
	line-height: 1;
}

.zb-form-dialog {
	.el-form-item {
		&:last-child {
			margin-bottom: 0;
		}
	}
}
// 已选择的停车场隐藏框-start
ul.selectParkingLotTree {
	max-height: 375px;
	overflow-y: scroll;
}
ul.selectParkingLotTree::-webkit-scrollbar {
	/*滚动条整体样式*/
	width: 5px; /*高宽分别对应横竖滚动条的尺寸*/
	height: 1px;
}

ul.selectParkingLotTree::-webkit-scrollbar-thumb {
	/*滚动条里面小方块*/
	background: #999999;
	border-radius: 6px;
}
// 已选择的停车场隐藏框-end

.search-header-wrapper {
	.form-group {
		.input-group {
			.search-item-one {
				.el-input-group--prepend {
					.el-input-group__prepend {
						border-top-right-radius: 0;
						border-bottom-right-radius: 0;
						border: 1px solid #cccccc;
						border-right: 0;
						overflow: hidden;
					}
					.el-input__inner {
						border-top-left-radius: 0;
						border-bottom-left-radius: 0;
					}
				}
			}
		}
	}
}

.select-search-filter {
	.el-select-dropdown__list {
		padding: 12px 0;
		.el-select-dropdown__item {
			height: 30px;
			line-height: 30px;
			display: flex;
			align-items: center;
			> span {
				font-size: 12px;
				overflow: hidden;
				text-overflow: ellipsis;
				white-space: nowrap;
				width: 170px;
				height: 25px;
				line-height: 25px;
				&:last-child {
					width: 86px;
					color: #888888;
					padding: 0px 3px;
					background-color: #f4f4f4;
				}
				&.grayTip {
					width: 50px;
					height: inherit;
					color: #888888;
					text-align: center;
					background-color: #f4f4f4;
					margin-right: 10px;
					height: 22px;
					line-height: 22px;
					border-radius: 2px;
				}
			}
			> p {
				font-size: 14px;
				color: #474747;
			}
		}
	}
}

.el-tooltip__popper {
	p {
		padding: 3px;
	}
}

.el-table__empty-text {
	& > div {
		display: flex;
		justify-content: center;
		align-items: center;
		img {
			margin-right: 10px;
		}
	}
}

.el-input {
	&.has-unit {
		.el-input__inner {
			padding: 6px 34px 6px 12px;
		}
	}
}

.el-form-item__content {
	//input内单位字体样式
	position: relative;
	.unit-text {
		position: absolute;
		right: 5px;
		top: 0;
	}
}

.el-form-item__error {
	z-index: 1;
}

.table-info {
	tr {
		vertical-align: top;
		.sub-info {
			margin-top: 4px;
			color: #666;
			font-size: 13px;
		}
	}
}

.modal-body .el-form .form-item-hasBg .el-form-item {
	margin-bottom: 0;
}

.modal-body .el-form .form-item-hasBg {
	position: relative;
	&:after {
		content: '';
		position: absolute;
		left: 80px;
		right: 0;
		top: -4px;
		bottom: -4px;
		background: #f2f2f2;
		z-index: -1;
		border-radius: 4px;
	}
	.el-form-item {
		&:first-child {
			.el-form-item__content {
				padding-left: 4px;
			}
		}
		&:last-child {
			.el-form-item__content {
				padding-right: 4px;
			}
		}
	}
}

.modal-body .el-form .form-item-hasBg2 {
	position: relative;
	&:after {
		content: '';
		position: absolute;
		left: 90px;
		width: 410px;
		top: -4px;
		bottom: -4px;
		background: #f2f2f2;
		z-index: -1;
		border-radius: 4px;
	}
	.el-form-item {
		margin-bottom: 0;
		.el-form-item__content {
			width: 108px;
		}
		&:first-child {
			.el-form-item__content {
				padding-left: 4px;
			}
		}
		&:last-child {
			.el-form-item__content {
				padding-right: 4px;
			}
		}
	}
}

.el-message-box {
	top: 30%;
	position: fixed;
	left: 50%;
	transform: translateX(-50%);
	width: 375px !important;
	padding-bottom: 0 !important;
	.el-message-box__header {
		padding: 0 16px;
		height: 40px;
		line-height: 40px;
		display: flex;
		align-items: center;
		.el-message-box__title {
			color: #333;
			font-size: 16px !important;
		}
		.el-message-box__close.el-icon-close {
			color: #333;
			transform: translateY(-3px);
		}
	}
	.el-message-box__content {
		min-height: 110px;
		display: flex;
		align-items: center;
		justify-content: center;
		padding: 20px 30px;
		.el-message-box__message {
			color: #333;
			font-size: 14px;
		}
	}
	.el-message-box__btns {
		width: 100%;
		display: flex;
		justify-content: center;
		align-items: center;
		padding-left: 40px;
		padding-right: 40px;
		padding-top: 0;
		padding-bottom: 0;
		height: 50px;
		line-height: 50px;
		flex-direction: row-reverse;
		.el-button {
			height: 32px !important;
			line-height: 32px !important;
			padding: 0 17px;
			font-size: 14px;
			background-color: #fff;
			border-color: #5995d8;
			color: #5995d8;
			&:first-child {
				margin-left: 18%;
			}
			&.alert-btn {
				&:first-child {
					margin-left: 0;
				}
			}
			&:hover {
				color: #5995d8;
				background-color: #e5eff9;
			}
			&.el-button--danger {
				background-color: #5995d8;
				color: #fff;
				border-color: #5995d8;
				&:hover {
					color: #fff;
					background-color: lighten(#5995d8, 5%);
				}
			}

			&.el-button--primary {
				background-color: #5995d8;
				color: #fff;
				border-color: #5995d8;
				&:hover {
					color: #fff;
					background-color: lighten(#5995d8, 5%);
				}
			}
		}
	}
}

.el-transfer-panel .el-transfer-panel__header .el-checkbox .el-checkbox__label {
	font-size: 14px !important;
}

.ztree * {
	font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', Arial,
		sans-serif !important;
}
